package com.prs.crm.domain.sys;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;

/**
 * 单据编码设置
 * 
 * @author 兰小刚
 * 
 */
@Entity
@Table(name = "cd_codeInvoce")
public class CodeInvoice extends BaseEntity {

	private static final long serialVersionUID = 1556583254686899200L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;

	/**
	 * 方案名称
	 */
	private String codePlan;

	/**
	 * 编码前缀
	 */
	private String codeFirst;

	/**
	 * 流水号
	 */
	private String liuShuiNum;

	/**
	 * 流水号位数
	 */
	private String liuShuiNumScreen;

	/**
	 * 流水号
	 */
	private String NumBackUp;

	/**
	 * 编码方式
	 */
	private String codeWay;
	/**
	 * 编码方式Screen
	 */
	private String codeWayScreen;

	/**
	 * 编码类型
	 */

	private String codeType;

	/**
	 * 是否默认
	 * 
	 * @return
	 */
	private String yndefault;
	/**
	 * 是否用完
	 */
	@Column(columnDefinition = "Integer(11) default '0'")
	private int codeState;

	public int getCodeState() {
		return codeState;
	}

	public void setCodeState(int codeState) {
		this.codeState = codeState;
	}


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCodePlan() {
		return codePlan;
	}

	public void setCodePlan(String codePlan) {
		this.codePlan = codePlan;
	}

	public String getCodeFirst() {
		return codeFirst;
	}

	public void setCodeFirst(String codeFirst) {
		this.codeFirst = codeFirst;
	}

	public String getLiuShuiNum() {
		return liuShuiNum;
	}

	public void setLiuShuiNum(String liuShuiNum) {
		this.liuShuiNum = liuShuiNum;
	}

	public String getCodeWay() {
		return codeWay;
	}

	public void setCodeWay(String codeWay) {
		this.codeWay = codeWay;
	}

	public String getCodeType() {
		return codeType;
	}

	public void setCodeType(String codeType) {
		this.codeType = codeType;
	}

	public String getNumBackUp() {
		return NumBackUp;
	}

	public void setNumBackUp(String numBackUp) {
		NumBackUp = numBackUp;
	}

	public String getLiuShuiNumScreen() {
		return liuShuiNumScreen;
	}

	public void setLiuShuiNumScreen(String liuShuiNumScreen) {
		this.liuShuiNumScreen = liuShuiNumScreen;
	}

	public String getCodeWayScreen() {
		return codeWayScreen;
	}

	public void setCodeWayScreen(String codeWayScreen) {
		this.codeWayScreen = codeWayScreen;
	}

	public String getYndefault() {
		return yndefault;
	}

	public void setYndefault(String yndefault) {
		this.yndefault = yndefault;
	}

}
